//定义当前是否大写的状态 
var CapsLockValue=0; 
var curEditName;
var check; 
//document.write (' <DIV align=center id=\"softkeyboard\" name=\"softkeyboard\" style=\"position:absolute; left:300px; top:320px; width:517px; z-index:180;display:none\">'); 
document.write (' <DIV class=\"softkeyboard\" id=\"softkeyboard\" name=\"softkeyboard\" style=\"display:; \">'); 

//document.write (' ------数字----'); 
document.write (' <div class=\"c_panel shuzi\" id="shuzi">'); 

document.write ('<table align=\"center\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">');

document.write (' <tr> '); 
document.write (' <td><input class="" type=button onclick=\"addValue(\'1\');\" value=\" 1 \"></td>'); 
document.write (' <td><input class="" type=button onclick=\"addValue(\'2\');\" value=\" 2 \"></td>'); 
document.write (' <td><input class="" type=button onclick=\"addValue(\'3\');\" value=\" 3 \"></td>'); 
document.write (' <td><input class="" type=button onclick=\"addValue(\'4\');\" value=\" 4 \"></td>'); 
document.write (' </tr>'); 

document.write (' <tr> '); 
document.write (' <td><input class="" type=button onclick=\"addValue(\'5\');\" value=\" 5 \"></td>'); 
document.write (' <td><input class="" type=button onclick=\"addValue(\'6\');\" value=\" 6 \"></td>'); 
document.write (' <td><input class="" type=button onclick=\"addValue(\'7\');\" value=\" 7 \"></td>'); 
document.write (' <td><input class="" type=button onclick=\"addValue(\'8\');\" value=\" 8 \"></td>'); 
document.write (' </tr>'); 

document.write (' <tr> '); 

document.write (' <td><input class="" type=button onclick=\"addValue(\'9\');\" value=\" 9 \"></td>'); 
document.write (' <td><input class="" type=button onclick=\"addValue(\'0\');\" value=\" 0 \"></td>');
document.write (' <td><input class="tx-phone-back" type=button value=\" \" onclick=\"backspace();\"></td>'); 
document.write (' <td><input class="i_button i_button_btn" type=button onclick=\"clearValue();\"  value=清空 ></td>'); 

document.write (' </tr>'); 

document.write (' </table>'); 
 
document.write ('</DIV>'); 


//给输入的密码框添加新值 
function addValue(newValue) 
{ 
	CapsLockValue==0?$(".input_cur").val($(".shuru").val()+ newValue):$(".input_cur").val($(".shuru").val()+ newValue.toUpperCase())
} 
//清空 
function clearValue() 
{ 
	$(".input_cur").val(""); 
} 
//实现BackSpace键的功能 
function backspace() 
{ 
	var longnum=$(".input_cur").val().length; 
	var num ;
	num=$(".input_cur").val().substr(0,longnum-1); 
	$(".input_cur").val(num); 
} 